using GalaSoft.MvvmLight;
using System.Collections.ObjectModel;

namespace _01_WPF_界面布局练习.ViewModel
{
    /// <summary>
    /// This class contains properties that the main View can data bind to.
    /// <para>
    /// Use the <strong>mvvminpc</strong> snippet to add bindable properties to this ViewModel.
    /// </para>
    /// <para>
    /// You can also use Blend to data bind with the tool's support.
    /// </para>
    /// <para>
    /// See http://www.galasoft.ch/mvvm
    /// </para>
    /// </summary>
    public class MainViewModel : ViewModelBase
    {

        public ObservableCollection<ModuleInfo> Modules { get; set; }

        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        public MainViewModel()
        {
            Init();
        }

        private void Init()
        {
            Modules = new ObservableCollection<ModuleInfo>();
            Modules.Add(new ModuleInfo() { IconFont = "\xe626", Title = "Application" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe77a", Title = "Opinion" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe50a", Title = "Tasks" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe669", Title = "Program" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe502", Title = "Data" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe77a", Title = "Opinion" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe50a", Title = "Tasks" });
            Modules.Add(new ModuleInfo() { IconFont = "\xe669", Title = "Program" });
        }
    }
}